<?php
App::uses('AppModel', 'Model');

class Category extends AppModel {
	public $validate = array(
		'name' => array(
        "rule" => "notEmpty",
		'message' => 'Nhập tên chuyên mục')
	);
	public $belongsTo = array(
        'Topic' => array(
            'className' => 'Topic',
            'foreignKey' => 'topicId'
        )
    );

}
